# -*- coding: UTF-8 -*-
'''
@Project: yc-stock
@File: config.py
@Notes: 
@Author: zhuyoucheng
@Date: 2021/3/20 0020 14:58
'''

DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = 'root'
HOST = '127.0.0.1'
PORT = 3306
DATABASE = 'stock'

#mysql 不会认识utf-8,而需要直接写成utf8
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True


ELASTICSEARCH_URL = 'http://172.16.6.62:9200'
